/**
* @author afeng
* @Date 2025-03-17 10:50:14
* @description 权限组
*/
package com.monitor.model;

import com.monitor.pubInter.BaseTimeDoMain;
import javax.validation.constraints.*;
import org.hibernate.validator.constraints.Length;

public class PermissionGroup extends BaseTimeDoMain {
    /**
     * 权限组名
     */
    @Length(max=50,message="权限组名长度最大值50")
    private String name;

    /**
     * 备注
     */
    @Length(max=500,message="备注长度最大值500")
    private String remarks;

    /**
     * 排序
     */
    private Integer sortNum = 0;

    /**
     * 是否显示
     * 1:是:Y,0:否:N
     */
    private Integer showFlag = 1;

    /**
     * 是否删除
     * 1:删除:Y,0:正常:N
     */
    private Integer delFlag = 0;

     /**
     *主键
     */
    public static final String ID = "permission_group.pg_id";

     /**
     *创建时间
     */
    public static final String CREATE_TIME = "permission_group.pg_create_time";

     /**
     *更新时间
     */
    public static final String UPDATE_TIME = "permission_group.pg_update_time";

     /**
     *权限组名
     */
    public static final String NAME = "permission_group.pg_name";

     /**
     *备注
     */
    public static final String REMARKS = "permission_group.pg_remarks";

     /**
     *排序
     */
    public static final String SORT_NUM = "permission_group.pg_sort_num";

     /**
     *是否显示
     */
    public static final String SHOW_FLAG = "permission_group.pg_show_flag";

     /**
     *是否删除
     */
    public static final String DEL_FLAG = "permission_group.pg_del_flag";

     /**
     *填充detail key
     */
    public static final String PERMISSION_GROUP_FULL_DETAIL_KEY = "PERMISSION_GROUP_FULL_DETAIL";

     /**
     *填充list key
     */
    public static final String PERMISSION_GROUP_FULL_LIST_KEY = "PERMISSION_GROUP_FULL_LIST";

    /**
     * 获取权限组名
     *
     * @return pg_name - 权限组名
     */
    public String getName() {
        return name;
    }

    /**
     * 设置权限组名
     *
     * @param name 权限组名
     */
    public PermissionGroup setName(String name) {
        this.name = name == null ? null : name.trim();
        return this;
    }

    /**
     * 获取备注
     *
     * @return pg_remarks - 备注
     */
    public String getRemarks() {
        return remarks;
    }

    /**
     * 设置备注
     *
     * @param remarks 备注
     */
    public PermissionGroup setRemarks(String remarks) {
        this.remarks = remarks == null ? null : remarks.trim();
        return this;
    }

    /**
     * 获取排序
     *
     * @return pg_sort_num - 排序
     */
    public Integer getSortNum() {
        return sortNum;
    }

    /**
     * 设置排序
     *
     * @param sortNum 排序
     */
    public PermissionGroup setSortNum(Integer sortNum) {
        this.sortNum = sortNum;
        return this;
    }

    /**
     * 获取是否显示
     *
     * @return pg_show_flag - 是否显示
     */
    public Integer getShowFlag() {
        return showFlag;
    }

    /**
     * 设置是否显示
     * 1:是:Y,0:否:N
     *
     * @param showFlag 是否显示
     */
    public PermissionGroup setShowFlag(Integer showFlag) {
        this.showFlag = showFlag;
        return this;
    }

    /**
     * 获取是否删除
     *
     * @return pg_del_flag - 是否删除
     */
    public Integer getDelFlag() {
        return delFlag;
    }

    /**
     * 设置是否删除
     * 1:删除:Y,0:正常:N
     *
     * @param delFlag 是否删除
     */
    public PermissionGroup setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
        return this;
    }
}